﻿using Bricks.Business.Models.Account;
using Bricks.Business.Data.Repositories.Account;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;

namespace Bricks.Business.Service.Impl
{
    [Export(typeof(IUserOrgService))]
    public class UserOrgService : IUserOrgService
    {
        [Import]
        protected IUserOrgRepository UserOrgRepository { get; set; }

        public IQueryable<UserOrg> UserOrgs
        {
            get { return UserOrgRepository.Entities; }
        }
    }
}
